package com.aiit.service.impl;

import com.aiit.dao.ALogDao;
import com.aiit.pojo.ALog;
import com.aiit.service.ALogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ALogServiceImpl implements ALogService {
    @Resource
    private ALogDao qlogDao;

    @Override
    public List<ALog> queryAll() {
        return qlogDao.queryAll();
    }

    @Override
    public int addLog(ALog log) {
        return qlogDao.addLog(log);
    }

    @Override
    public ALog getLogById(int id) {
        return qlogDao.getLogById(id);
    }

    @Override
    public int deleteLogById(int id) {
        return qlogDao.deleteLogById(id);
    }
}
